@extends('layouts.master')

@section('title')
    规格录入——央票通管理后台
@stop

@section('app_css')
    <link rel="stylesheet" href="/resource/css/bootstrap.min.css">
    <link rel="stylesheet" href="/resource/css/font-awesome.min.css">
    <link rel="stylesheet" href="/resource/css/animate.min.css">
    <link rel="stylesheet" href="/resource/css/custom.css">
    <link rel="stylesheet" href="/resource/css/green.css">
    <link rel="stylesheet" href="/resource/css/fileinput.min.css">
    @stop

@section('app_js')
    <!--[if lt IE 9]>
    <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <script src="/resource/js/jquery.min.js"></script>
    <script src="/resource/js/bootstrap.min.js"></script>
    <script src="/resource/js/custom.js"></script>
    <!-- icheck -->
    <script src="/resource/js/icheck.min.js"></script>
    <!-- Datatables -->
    <script src="/resource/js/jquery.dataTables.js"></script>
    <script src="/resource/js/J_main.js"></script>
    <!-- 添加图片 -->
    <script src="/resource/js/fileinput.min.js"></script>
    <script src="/resource/js/fileinput_locale_zh.js"></script>
    <script>

        $(document).delegate('.btn-success','click',function() {
            var status = true;
            $.ajax({
                type: "get",
                url: "/admin/product_brand_is",
                data: 'brand_name=' + $("[name='brand_name']").val(),
                async : false,
                success: function (data) {
                    if (data==1) {
                        status=false;
                        alert('品名已存在');
                        return status;
                    }
                }
            });
            return status;
        })
    </script>
    <script>
        $('.J_class .form-control').click(function(){
            if (!$('.form-class').hasClass('open')) {
                $('.form-class').addClass('open').show();
            }else{
                $('.form-class').removeClass('open').hide();
            };
        });
        $('.J_class .form-class li').hover(function(){
            $(this).find('.class-info').show();
        },function(){
            $(this).find('.class-info').hide();
        });
        $('.J_class .class-info ul li').hover(function(){
            $(this).find('.info-ul').show();
        },function(){
            $(this).find('.info-ul').hide();
        });
        //        $('.J_class .form-class ul li').click(function(){
        //            $('.J_class .form-control').html($(this).find('a').eq(0).html());
        //            $('#cate_name').val($(this).find('a').eq(0).attr('c_id'));
        //            $('.form-class').removeClass('open').hide();
        //            $('.class-info').hide();
        //        });
        $('.J_class .info-ul ul li').click(function(e){
            e?e.stopPropagation():event.cancelBubble = true;
            $('.J_class .form-control').html($(this).html());
            $('#cate_name').val($(this).attr('c_id'));
            $('.form-class').removeClass('open').hide();
            $('.class-info').hide();
        });
    </script>
@stop

@section('content')
    <body class="nav-md">

    <div class="container body">


        <div class="main_container">

            @include('common.admin_menu')

                    <!-- top navigation -->
            @include('common.admin_nav')
                    <!-- /top navigation -->
            <!-- page content -->
            <div class="right_col" role="main">
                <div class="">

                    <div class="row cont">

                        <div class="col-md-6 col-sm-12 col-xs-12">
                            <div class="x_panel">
                                <div class="x_title">
                                    <h2>审核状态</h2>
                                    <div class="clearfix"></div>
                                </div>

                                <div class="x_content">
                                    <br />
                                        {{ Form::open(['url'=>'/paymen_staue', 'id'=>'demo-form2', 'class'=> 'form-horizontal form-label-left', 'files' => true, 'method' => 'post']) }}
                                        <div class="form-group form-visible">
                                            <label class="control-label col-md-2 col-sm-2 col-xs-12" for="first-name">审核状态
                                            </label>
                                            <div class="col-md-10 col-sm-10 col-xs-12">
                                            <select  name="status" type="text" id="first-name" required="required" class="form-control col-md-7 col-xs-12">
                                                    <option value="2">审核中</option>
                                                    <option value="1">审核通过</option>
                                                    <option value="3">审核未通过</option>
                                            </select>
                                            </div>
                                        </div>

                                        <input name="wid" type="hidden" value="{{$wid}}" >
                                        <div class="ln_solid"></div>
                                        <div class="form-group">
                                            <div class="col-md-10 col-sm-10 col-xs-12 col-md-offset-3">
                                                <button type="reset" class="btn btn-primary">取消</button>
                                                <button type="submit" class="btn btn-success">提交</button>
                                            </div>
                                        </div>

                                        {{ Form::close() }}

                                </div>
                            </div>
                        </div>

                        <br />
                        <br />
                        <br />

                    </div>
                </div>

                <!-- footer content -->

                <footer>
                    <div class="">
                        <p class="pull-right">Copyright 2016 ganglianw.com All rights reserved. |
                            <span class="lead"> <i class="fa fa-logo-footer"></i> 央票通后台管理系统</span>
                        </p>
                    </div>
                    <div class="clearfix"></div>
                </footer>
                <!-- /footer content -->
            </div>
            <!-- /page content -->

        </div>
    </div>

    <div id="custom_notifications" class="custom-notifications dsp_none">
        <ul class="list-unstyled notifications clearfix" data-tabbed_notifications="notif-group">
        </ul>
        <div class="clearfix"></div>
        <div id="notif-group" class="tabbed_notifications"></div>
    </div>
    </body>
@stop